﻿@using System.Web.Optimization
@using Smarly.Bussines.Membership
@using Smarly.Web.Helpers
@using StackExchange.Profiling
<!DOCTYPE html>
<html lang="ru">
	<head>
		<meta charset="utf-8" />
		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
		<meta name="viewport" content="width=device-width; initial-scale=1.0">

		<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
		<title>@ViewBag.Title</title>
		<meta name="title" content="@ViewBag.Title" />

		<meta name="description" content="@ViewBag.Description" />
		<meta name="author" content="smarly.net company" /> 
		<link rel="image_src" href="@(ViewBag.Cover ?? Html.ConvertRelativeUrlToAbsoluteUrl(Url.Content("~/img/S.jpg")))" />

		<meta property="og:url" content="@Request.Url.AbsoluteUri" />
		<meta property="og:title" content="@ViewBag.Title" />
		<meta property="og:type" content="book"/>
		<meta property="og:description" content="@ViewBag.Description" />
		<meta property="og:image" content="@(ViewBag.Cover ?? Html.ConvertRelativeUrlToAbsoluteUrl(Url.Content("~/img/S.jpg")))" />
		<meta property="og:site_name" content="smarly.net"/>
		<meta property="fb:app_id" content="407700719292728"/>
		

		<link href="//yandex.st/bootstrap/2.3.1/css/bootstrap.min.css" rel="stylesheet" />
		@Styles.Render("~/bundles/css/smarly")
		@Styles.Render("~/bundles/css/smarly-page")
		
		@RenderSection("css", false)

		<script type="text/javascript">
			var isAuth = @(User.Identity.IsAuthenticated ? "true" : "false" );
			var authDomain = '@(Request.AuthDomain())';
		</script>
		<script type="text/javascript" src="//yandex.st/jquery/1.9.1/jquery.min.js"></script>
		<!--[if lt IE 9]>
   		<script type="text/javascript" src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
		<![endif]-->
		<script type="text/javascript" src="//yandex.st/bootstrap/2.3.1/js/bootstrap.min.js"></script>
		<script type="text/javascript" src="//yandex.st/jquery/mousewheel/3.0.6/jquery.mousewheel.min.js"></script>

		@Scripts.Render("~/bundles/js/jquery.cookie")
		@Scripts.Render("~/bundles/js/smarly")
		@Scripts.Render("~/bundles/js/smarly/validate")

		@RenderSection("script", false)
		
	</head>
	<body>
		@if (!Html.IsDebug())
		{ 
			<script type="text/javascript" src="@Url.Content("~/jslibs/yandex-metrika.study.js")"></script>
			@Html.Partial("_YandexPartial")
		}		
		<div class="extra">
			<header>
				<div class="container">
					<div class="row-fluid">
						<div class="span12">
							@Html.Partial("_HeaderPartial")
						</div>
					</div>
				</div>
			</header>
			
			<section id="content">
				<div class="container">
					@RenderBody()
				</div>
			</section>
		</div>

		<div id="customModal" class="modal hide">
			<div class="modal-header">
				<button aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button>
				<h4></h4>
			</div>
			<div class="modal-body"></div>
			<div class="modal-footer">
				<a data-type="apply" class="btn">Применить</a>
				<a data-type="cancel" class="btn btn-primary" data-dismiss="modal" >Закрыть</a>
			</div>
		</div>

		@if (Html.IsDebug())
		{ 
			@MiniProfiler.RenderIncludes()
		}		

	</body>
</html>